var navReady = false;

navButtonRefArray = new Array();
navButtonRefArray[0] = null;
navButtonRefArray[0] = null;
navButtonRefArray[0] = null;

var navButtonImageArray = new Array();
for (var i=0;i<4;i++)
{
	navButtonImageArray[i] = new Array();
	for (var t=0;t<4;t++)
	{
		navButtonImageArray[i][t] = new Image();
	}
}

navButtonImageArray[0][0].src="../toolbar/back1a.gif";
navButtonImageArray[0][1].src="../toolbar/back2a.gif";
navButtonImageArray[0][2].src="../toolbar/back3a.gif";
navButtonImageArray[0][3].src="../toolbar/back1a.gif";

navButtonImageArray[1][0].src="../toolbar/goto1a.gif";
navButtonImageArray[1][1].src="../toolbar/goto2a.gif";
navButtonImageArray[1][2].src="../toolbar/goto3a.gif";
navButtonImageArray[1][3].src="../toolbar/goto1a.gif";

navButtonImageArray[2][0].src="../toolbar/forward1a.gif";
navButtonImageArray[2][1].src="../toolbar/forward2a.gif";
navButtonImageArray[2][2].src="../toolbar/forward3a.gif";
navButtonImageArray[2][3].src="../toolbar/forward1a.gif";

function NavOver(num)
{
	var temp = "";
	if (!navReady) return;
	navButtonRefArray[num-1].src = navButtonImageArray[num-1][1].src;
	switch (num)
	{
		case 1:temp = "Click here to go to the previous page";break;
		case 2:temp = "Click here to go to a specific page";break;
		case 3:temp = "Click here to go to the next page";break;
	}
	window.status=temp;
}

function NavDown(num)
{
	if (!navReady) return;
	navButtonRefArray[num-1].src = navButtonImageArray[num-1][2].src;
}

function NavUp(num)
{
	if (!navReady) return;
	navButtonRefArray[num-1].src = navButtonImageArray[num-1][1].src;
}

function NavOut(num)
{
	if (!navReady) return;
	navButtonRefArray[num-1].src = navButtonImageArray[num-1][0].src;
	parent.window.status="";
	updateStatus();
}

function NavClick(num)
{	
	if (!navReady || !IsUnitechCourse()) return;
	switch (num)
	{
		case 1:parent.Toolbar.navBack();break;
		case 2:parent.Toolbar.showPages();break;
		case 3:parent.Toolbar.navNext();break;
	}
}

function initNavButtons()
{
	for (var i=0;i<3;i++)
	{
		NavOut(i+1);
	}
	navReady = true;
}

